package cfengMiddleware.server.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.jetbrains.annotations.NotNull;

import java.io.Serializable;

/**
 * @author Cfeng
 * @date 2022/9/18
 * 用户提交的订单实体，前后台数据传输使用JSON
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class UserOderDto implements Serializable {

    private static final long serialVersionUID = 3941276201724001282L;
    //订单编号
    @NotNull
    private String orderNo;

    //用户编号
    @NotNull
    private Integer userId;
}
